import {
  Controller,
  Get,
  Post,
  Body,
  Patch,
  Param,
  Delete,
} from '@nestjs/common';

import { PunchFoodService } from './punch-food.service';
import { CreatePunchFoodDto, UpdatePunchFoodDto } from './dto/punch-food.dto';
import { ApiExcludeController } from '@nestjs/swagger';

@ApiExcludeController()
@Controller('app/punch-food')
export class PunchFoodController {
  constructor(private readonly punchFoodService: PunchFoodService) {}

  @Post()
  create(@Body() createPunchFoodDto: CreatePunchFoodDto) {
    return this.punchFoodService.create(createPunchFoodDto);
  }

  @Get()
  findAll() {
    return this.punchFoodService.findAll();
  }

  @Get(':punchFoodId')
  findOne(@Param('punchFoodId') punchFoodId: number) {
    return this.punchFoodService.findOne(punchFoodId);
  }

  @Patch(':punchFoodId')
  update(
    @Param('punchFoodId') punchFoodId: number,
    @Body() updatePunchFoodDto: UpdatePunchFoodDto,
  ) {
    return this.punchFoodService.update(punchFoodId, updatePunchFoodDto);
  }

  @Delete(':punchFoodId')
  remove(@Param('punchFoodId') punchFoodId: number) {
    return this.punchFoodService.remove(punchFoodId);
  }
}
